﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pf.BusinessLogic.CharacterCreation.DetermineAbilityScores
{    
    /// <summary>
    /// Ability scores
    /// </summary>    
    public class AbilityValues
    {
        public int Strength { get; set; }
        public int Dexterity { get; set; }
        public int Constitution { get; set; }        
        public int Intelligence { get; set; }
        public int Wisdom { get; set; }
        public int Charisma { get; set; }

        public IEnumerable<int> AsEnumerable()
        {
            return new int[] { Strength, Dexterity, Constitution, Intelligence, Wisdom, Charisma };
        }

        public void SetAll(Func<int> setFunction)
        {
            Strength = setFunction();            
            Dexterity = setFunction();
            Constitution = setFunction();
            Intelligence = setFunction();
            Wisdom = setFunction();
            Charisma = setFunction();
        }
    }
}
